package ai.astar;

public class Link {

    private Node from;
    private Node to;
    private double length;

    public Link(Node from, Node to, double length){
    	this.from = from;
    	this.to = to;
    	this.length = length;
    }

	public Node getFrom() {
		return from;
	}

	public void setFrom(Node from) {
		this.from = from;
	}

	public Node getTo() {
		return to;
	}

	public void setTo(Node to) {
		this.to = to;
	}

	public double getLength() {
		return length;
	}

	public void setLength(double length) {
		this.length = length;
	}
}
